import { createApp } from "vue";
import App from "./App.vue";
const app = createApp(App);

import router from "./router/index";

import * as ElIcon from "@element-plus/icons-vue";
Object.keys(ElIcon).forEach(function (key) {
  app.component(ElIcon[key].name, ElIcon[key]);
});

import ElementPlus from "element-plus";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import "element-plus/dist/index.css";

import axios from "./http/axios";

app.config.globalProperties.$http = axios;

import fabric from "fabric";


app
  .use(router)
  .use(ElementPlus, { locale: zhCn })
  .use(fabric)
  .mount("#app");
